package io;

import java.io.File;
import java.util.Arrays;

public class Demo4 {
public static void main(String[] args) {
    File file = new File("d:/java116");
    System.out.println(Arrays.toString(file.list()));
    System.out.println(Arrays.toString(file.listFiles()));
}
}
